package com.eqdd.yiqidian.ui.select;


import android.os.Parcel;
import android.os.Parcelable;

import com.luck.picture.lib.entity.LocalMedia;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by lvzhihao on 17-5-25.
 */

public class RichTextResult implements Parcelable {

    public RichTextResult() {
    }


    private String content;
    private List<LocalMedia> selectMedia = new ArrayList();

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<LocalMedia> getSelectMedia() {
        return selectMedia;
    }

    public void setSelectMedia(List<LocalMedia> selectMedia) {
        this.selectMedia = selectMedia;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.content);
        dest.writeTypedList(this.selectMedia);
    }

    protected RichTextResult(Parcel in) {
        this.content = in.readString();
        this.selectMedia = in.createTypedArrayList(LocalMedia.CREATOR);
    }

    public static final Creator<RichTextResult> CREATOR = new Creator<RichTextResult>() {
        @Override
        public RichTextResult createFromParcel(Parcel source) {
            return new RichTextResult(source);
        }

        @Override
        public RichTextResult[] newArray(int size) {
            return new RichTextResult[size];
        }
    };
}
